#content {
    width: 100%;
    height: 100%;
}

#header {
    width: 100%;
    height: 15%;
}

#bodydiv {
    width: 100%;
    height: 85%;
    overflow-y: auto; /* 添加这一行以实现垂直滚动条 */
    display: block;
}

body {
    height: 95vh;
    padding: 0;
}

.search-form {
    display: flex; /* 将搜索表单转化为弹性盒模型 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    /*position: absolute;*/
    /*top: 5%;*/
    /*left: 50%;*/
    /*transform: translate(-50%, -50%); !* 防止原点位置导致的偏移 *!*/
    width: fit-content; /* 或者指定一个宽度以适应内容 */
    margin: 0 auto; /* 如果是常规块级元素居中，可以使用这种方法 */
}

.search-input {
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 300px;
    transition: box-shadow 0.3s ease;

    display: block;
    /*width: 200px; !* 设置合适的宽度 *!*/
    margin-bottom: 10px; /* 为input和ul之间添加间距 */
}

.search-input:focus {
    outline: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.search-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #FF6633;
    color: white;
    border: none;
    border-radius: 20px;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #E56236;
}

.notelist {
    width: 11%;
    border: 1.5px solid #AAA0AA;
    float: left;
    height: 40%;
    margin-left: 0.36%;
    margin-top: 0.4%;
    background-size: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

ul li {
    list-style: none;
}

#keyword {
    /*width: 300px;*/
    margin: 0;
    padding: 0;
    clear: both; /* 清除前一个浮动元素的影响 */
    list-style-type: none; /* 去除列表默认样式 */
    position: absolute; /* 或者relative，根据实际布局需求 */
    top: 48px; /* 让ul紧贴input下边缘 */
}

#keyword li {
    width: 300px;
    height: 25px;
    border: 1px solid #AAAAAA;
    border-radius: 5px;
    font-size: 15px;
    color: #aaa0aa;
    padding: 5px;
}

#keyword li:hover {
    transition: box-shadow 0.3s ease;
    background-color: #E56236;
    color: white;
    border: 1px solid #E56236;
    cursor: pointer;
}

.notelist:hover {
    cursor: pointer;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px); /* 根据需求调整升起的高度 */
}

.coverdiv {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    width: 100%;
    height: 70%;
    background-size: cover;
    background-repeat: no-repeat; /* 防止重复平铺 */
    background-position: center; /* 居中对齐 */
}

.userdiv {
    width: 100%;
    height: 20%;
    display: flex;
    align-items: center;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.coverimg {
    border-radius: 50%;
    display: flex;
    align-items: center;
    height: 80%;
}

.nickName {
    display: inline-block;
    margin-right: 20px;
    font-size: 10px;
    color: #AAAAAA;
}

.dateText {
    display: inline-block;
    float: right;
    font-size: 10px;
    color: #AAAAAA;
}

.add-form{
    margin-top: 25px;
    float: right;
    margin-right: 5%;
}

#addbtn {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #FF6633;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.title {
    overflow: hidden; /* 隐藏超出的内容 */
    text-overflow: ellipsis; /* 当内容溢出时显示省略号 */
    white-space: nowrap; /* 禁止文本换行 */
    width: 100%; /* 或者设置一个固定的宽度，根据实际场景需求 */
    height: 10%;
}
.titlelabel{
    margin-left: 5px;
}

   /* 媒体查询(兼容移动端浏览器)*/
   @media screen and (max-width: 768px) {
     #content, #header, #bodydiv {
         width: 100%;
         box-sizing: border-box;
     }
     .notelist {
         width: 48%;
         height: 40%;
         margin-top: 1%;
         margin-left: 1%;
     }
     .search-input{
         width: 200px;     }
   }